#if you want to activate the virtual ADC you have to define X86
CCFLAGS =       -Wall -g -mcpu=arm9 -o

#SOURCES =       tsadclib1624.c tsadc1624ctl.c
#SOURCES =       tsadclib16.c tsadc1624ctl.c
SOURCES =        ADCBoard.cpp main.cpp

#OBJS =          tsadclib1624.o tsadc1624ctl.o
#OBJS =          tsadclib16.o tsadc1624ctl.o
OBJS =           ADCBoard.o main.o

LIBS =

TARGET =        tsadc1624ctl

CXX := /opt/crosstool/gcc-3.3.4-glibc-2.3.2/bin/arm-linux-g++
CC := /opt/crosstool/gcc-3.3.4-glibc-2.3.2/bin/arm-linux-gcc

$(TARGET):      $(OBJS)
	$(CXX) $(CCFLAGS) $(TARGET) $(SOURCES) $(LIBS)

all:    $(TARGET)

clean:
	rm -f $(OBJS) $(TARGET)